#!/bin/bash
set -exu
mvn clean package  && \
cp ./ruoyi-admin/target/ruoyi-admin.jar ./ruoyi-admin/target/app.jar && \
scp -r ./ruoyi-admin/target/app.jar root@bt.dabenshu.com:/www/server/mine/ && \
ssh root@bt.dabenshu.com "pm2 restart ims && pm2 flush && pm2 log ims" \ &&
echo "deploy success !"